package cn.chencq.moudle.proxyip.entity;

import java.sql.Timestamp;

/**
 * 
 * @ClassName: ProxyIp
 * @Description: 代理IP
 * @author: chaoqun.chen
 * @date: 2019年1月30日 下午2:17:19
 */
public class ProxyIp {

	/**
	 * 主键： 是ip + ":" + port字符串md5的值
	 */
	private String id;

	/**
	 * 代理IP
	 */
	private String ip;

	/**
	 * 代理端口
	 */
	private String port;

	/**
	 * 代理类型 http/https/socket
	 */
	private String proxyType;

	/**
	 * 匿名度 0 透明 1 匿名 2 高匿名
	 */
	private String anonymity;

	/**
	 * 状态 0 未校验 1 检验有效 2 校验无效
	 */
	private String status;

	/**
	 * 创建时间
	 */
	private Timestamp createTime;

	/**
	 * 更新时间
	 */
	private Timestamp updateTime;

	public ProxyIp() {
		// 默认构造器
	}

	public ProxyIp(String ip, String port, String proxyType, String anonymity, String status) {
		super();
		this.ip = ip;
		this.port = port;
		this.proxyType = proxyType;
		this.anonymity = anonymity;
		this.status = status;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public String getProxyType() {
		return proxyType;
	}

	public void setProxyType(String proxyType) {
		this.proxyType = proxyType;
	}

	public String getAnonymity() {
		return anonymity;
	}

	public void setAnonymity(String anonymity) {
		this.anonymity = anonymity;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}
